package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.SerialNumMngBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface SerialNumMngService extends BaseService<SerialNumMngBean> {

	SerialNumMngBean getSerialNumMngBeanById(String id) throws Exception;
	
	void removeSerialNumMngBeanById(String id) throws Exception;
	
	void removeSerialNumMngBeanByIds(String ids) throws Exception;
	
	SerialNumMngBean saveSerialNumMngBean(SerialNumMngBean crm) throws Exception;
	
	SerialNumMngBean updateSerialNumMngBean(SerialNumMngBean crm) throws Exception;
	
	Page<SerialNumMngBean>  findSerialNumMngBeanByCond(SerialNumMngBean bean,
			Page<SerialNumMngBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveSerialNumMngBeanExt(String sql) throws Exception;

	String findSerialNumMngBeanExtCreate(String tableName) throws Exception;

	String findSerialNumMngBeanExtEdit(String tableName, String id)
			throws Exception;

	String findSerialNumMngBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasSerialNumMngBeanExtData(String tableName, String id)
			throws Exception;
}